<title>收件登记-增加</title>
<!-- /section:settings.box -->
<div class="row">
	<div class="col-xs-12 aptitude_receiptEdit">
		<form class="form-horizontal registerform">
			<div class="space-4"></div>
			<div class="space-4"></div>

			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">受理编号：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt"><?=$model['code_str']?></div>

				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">收件时间：</label>
				<div data-link-field="dtp_input1" data-date-format="yyyy-mm-dd"
					class="input-group date form_datetime col-sm-2 fl">
					<?=date("Y-m-d",strtotime($model['sd_time']))?>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">送件单位：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
					<?=$model['sd_unit']?>
					</div>

				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">经办人：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<?=$model['linkman']?>
					</div>

				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">联系人及电话：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<?=$model['phone']?>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">申办内容：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<?=$model['content']?>
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">材料清单：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt in_txt_hover js_hover">
						<?php
						foreach ( $data as $item ) {
							?>
						<a href="javascript:;" class="btn btn-mini btn-grey"
							data-hover="guan" data-indentity="<?=$item['sys_value'] ?>"><?=$item['sys_value'] ?></a>
						 <?php
						}
						?>
					</div>
				</div>
			</div>
			<div class="space-4"></div>
			<div class="clearfix form-actions">
				<div class="col-md-offset-3 col-md-9">
					<button class="btn btn-info save" type="button" id="btnSubmit">
						<i class="ace-icon fa fa-check bigger-110"></i>完成修改
					</button>
					&nbsp; &nbsp;
					<button class="btn" type="button">
						<i class="ace-icon glyphicon glyphicon-remove bigger-110"></i>取消
					</button>
				</div>
			</div>
		</form>
	</div>
</div>
<script type="text/javascript">
var scripts = [null,  null
           ];
var $scope = $(".aptitude_receiptEdit");
$('.page-content-area').ace_ajax('loadScripts', scripts, function(){

	$(".js_hover a").click(function(){
		var this_a=$(this)
	
			this_a.addClass("btn-success")
			this_a.removeClass("btn-grey")
			this_a.attr("data-hover","kai")
	})
	var power_list = '<?=$model['material'] ?>';
	power_list = power_list.split(',');
	for (var i = 0; i < power_list.length; i++) {
		$(".js_hover a[data-indentity='" + power_list[i] + "']", $scope).trigger("click");
	}

})
</script>
